Skip to content

Fix out-of-date (wrt XSD) HTML pages#216

Merged
haeckerbaer merged 8 commits into
v2.3-wipfrom
fix-ci-branch-triggers
Jun 23, 2026
Merged

Fix out-of-date (wrt XSD) HTML pages#216
haeckerbaer merged 8 commits into
v2.3-wipfrom
fix-ci-branch-triggers

Conversation

@thbar

@thbar thbar commented May 17, 2026

Copy link
Copy Markdown
Collaborator

Spotted while reviewing #196 (cardinality in the XSD versus HTML mode was not the same afaik), I finally understood that the workflow supposed to automatically update that has been disabled since the rename of the branches to v2.0 etc.

The deploy to GitHub pages (if it was working before) is affected as well, to be discussed.

Note on pattern choice: the expressivity of the patterns is not very rich & precise (not full regex if I understand well), so I just choose a "good enough" pattern with what was supported, able to catch things like v2.10-wip in the future.

Things tracked while attempting to fix this

Note to reviewers

While I apparently managed to reactivate tables generation, the diff will need some review.

@thbar thbar added this to the v2.3 milestone May 17, 2026
@thbar thbar changed the title Fix out-of-date (wrt XSD) HTML pages Try to fix out-of-date (wrt XSD) HTML pages May 17, 2026
@TuThoThai TuThoThai requested review from haeckerbaer and skinkie May 17, 2026 14:59
@TuThoThai TuThoThai added the bug Something isn't working label May 17, 2026
thbar and others added 3 commits May 17, 2026 22:14
…rictions

The addition of `<xsd:minInclusive value="PT0S"/>` on PositiveDurationType (PR #188) introduced a duration value in XSD restrictions that xcore's castToComparable function did not handle. This caused max()/min() to fail with [FORG0006] on BaseX 10.6 (used in CI), as xs:duration is not an ordered type per the XQuery spec (I think). BaseX 12.1+ silently accepts it though (my local runs passed).

Cast to xs:dayTimeDuration / xs:yearMonthDuration instead, which are the ordered subtypes that support comparison on all BaseX versions.

See #218
@thbar thbar changed the title Try to fix out-of-date (wrt XSD) HTML pages Fix out-of-date (wrt XSD) HTML pages May 17, 2026
@thbar thbar marked this pull request as ready for review May 17, 2026 20:54
@thbar thbar requested a review from TuThoThai May 17, 2026 20:59
Comment thread docs/xco-stype-description.xqm
Comment thread .github/workflows/ci.yml
@thbar thbar mentioned this pull request May 17, 2026
TuThoThai
TuThoThai previously approved these changes May 18, 2026

@TuThoThai TuThoThai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @thbar. Thanks!

@haeckerbaer

Copy link
Copy Markdown
Collaborator

can you check my comment for ci.yml? otherwise approved

Comment thread .github/workflows/ci.yml
@thbar

thbar commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

can you check my comment for ci.yml? otherwise approved

@haeckerbaer done! I would love if you can double-check that part (see my comment)

@thbar thbar requested a review from TuThoThai June 18, 2026 09:48
@thbar

thbar commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator Author

@haeckerbaer bump! If you have time, I've added explanation etc.

@TuThoThai TuThoThai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification on the Regex, @thbar ! Also, duly noted on the future change to be done for xs:duration

@haeckerbaer haeckerbaer merged commit ada377d into v2.3-wip Jun 23, 2026
1 check passed
@haeckerbaer haeckerbaer deleted the fix-ci-branch-triggers branch June 23, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants